Area and perimeter of triangle